/**
 * <strong>Title : ConfirmDetailService.java<br>
 * </strong> <strong>Package : cn.b.sky.mes.pp.service.impl<br>
 * </strong> <strong>Description : </strong>@类注释说明写在此处@<br>
 * <strong>Create on : 2015年10月9日 下午3:03:19<br>
 * </strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 *          <strong>修改历史:</strong><br>
 *          修改人 | 修改日期 | 修改描述<br>
 *          -------------------------------------------<br>
 * <br>
 * <br>
 */
package cn.b.sky.mes.pp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import cn.b.sky.common.exception.ImeException;
import cn.b.sky.mes.pp.dao.ProductionConfirmDetailDao;
import cn.b.sky.mes.pp.model.ProductionConfirm;
import cn.b.sky.mes.pp.model.ProductionConfirmDetail;
import cn.b.sky.mes.pp.model.condition.ProductionConfirmDetailCondition;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import cn.b.sky.mes.pp.service.ProductionConfirmDetailService;

/**
 * <strong>Title : ConfirmDetailService.java<br>
 * </strong> <strong>Package : cn.b.sky.mes.pp.service.impl<br>
 * </strong> <strong>Description : </strong>@类注释说明写在此处@<br>
 * <strong>Create on : 2015年10月9日 下午3:03:19<br>
 * </strong>
 * <p>
 * 
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 *          <strong>修改历史:</strong><br>
 *          修改人 | 修改日期 | 修改描述<br>
 *          -------------------------------------------<br>
 * <br>
 * <br>
 */
@Service("productionConfirmDetailService")
public class ProductionConfirmDetailServiceImpl implements ProductionConfirmDetailService {

  @Resource
  ProductionConfirmDetailDao productionConfirmDetailDao;

  @Override
  public List<ProductionConfirmDetail> selectSubmitDetailList(ProductionConfirmDetailCondition submitDetailCondition) {
    return productionConfirmDetailDao.selectSubmitDetailList(submitDetailCondition);
  }

  /**
   * 获取生产报工的明显
   *
   * @param siteCode
   * @param controlNum
   * @param processOperationId
   * @return
   */
  @Override
  public List<ProductionConfirm> getProductionConfirms(String siteCode, String controlNum, Long processOperationId) {
    return productionConfirmDetailDao.selectProductionConfirms(siteCode, controlNum, processOperationId);
  }

  @Override
  public int getSubmitDetailCount(ProductionConfirmDetailCondition submitDetailCondition) {
    return productionConfirmDetailDao.getSubmitDetailCount(submitDetailCondition);
  }

  @Override
  public List<ProductionConfirmDetail> selecPOConfirmDetailWorkCenters(ProductionConfirmDetailCondition condition) {

    return productionConfirmDetailDao.selecPOConfirmDetailWorkCenters(condition);
  }

  @Override
  public List<ProductionConfirmDetail> getConfirmDetailsByControlNum(String siteCode, String productionControlNum) {
    return productionConfirmDetailDao.getConfirmDetailsByControlNum(siteCode, productionControlNum);
  }

}
